def ymd():
now = datetime.now()
return(now.year,now.month,now.day)
y,m,d=ymd()
#input
from datetime import datetime
def ymd():
now = datetime.now()
return(now.year,now.month,now.day)
y,m,d=ymd()
print(y,m,d)
#output
2021 10 10
def func2(*args):
print('位置引數為',args)
位置引數為(1,2,3)
今天先介紹到這邊,
明天會再從關鍵字引數開始介紹喔